-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tooltip behaviour #414
Conversation
Nice catch! I didn't though about dragging over the tooltip. I will try to fix that too. |
My thoughts copy/paste from discord.
|
ClickedOutside would not be needed for this case as the tooltip needs to be removed when any PointerDown is performed (inside and outside), this has been fixed adding the handle of this event. |
still won't work if border_radius < border_width / 2, since the radius is limited by the stroke width
Fixed tooltip showing when dragging something over it, also remove tooltip when pointer wheel is triggered. PR set as draft to implement a better solution that reduces code duplication. |
…board without the view being focused
|
fix #413
As keyboard_navigatable only works when element is focused I cant use it to remove the tooltip, so I added the tooltip to the new WindowHandle field instead of overlays map (to be able to remove it directly).
New tooltip behaviour:
Hide tooltip when some key is pressed
Hide tooltip when PointerUp / PointerDown